package 请求客户端;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-12-16
 * Time: 16:37
 */
public class TestHttpGetter {
    public static void main(String[] args) {
        // 测试用例
        String testPeer = "localhost:8080";  // 请根据实际情况修改
        HttpGetter getter = new HttpGetter(testPeer);

        // 假设存在一个组为"exampleGroup"，键为"exampleKey"的数据
        String result = getter.get("exampleGroup", "exampleKey");

        if (result != null) {
            System.out.println("获取到的数据: " + result);
        } else {
            System.out.println("没有获取到数据或请求失败。");
        }
    }
}
